﻿using Newtonsoft.Json;
using ReadNovel.API.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace ReadNovel.API.Response.Book
{
    [DataContract]
    public class ReadOnlineResponse : BaseResponse
    {
        [DataMember(Name = "code")]
        public String Code { get; set; }

        [DataMember(Name = "text_id")]
        public String Text_id { get; set; }

        [DataMember(Name = "displayorder")]
        public String Displayorder { get; set; }

        [DataMember(Name = "is_vip")]
        public String Is_vip { get; set; }

        [DataMember(Name = "text_title")]
        public String Text_title { get; set; }

        [DataMember(Name = "word_count")]
        public String Word_count { get; set; }

        [DataMember(Name = "article_id")]
        public String Article_id { get; set; }

        [DataMember(Name = "pre")]
        [JsonConverter(typeof(ReadNovel.API.JsonConverters.ChapterShortInfoConverter))]
        public ChapterShortInfo Pre { get; set; }

        [DataMember(Name = "next")]
        [JsonConverter(typeof(ReadNovel.API.JsonConverters.ChapterShortInfoConverter))]  
        public ChapterShortInfo Next { get; set; }

        [DataMember(Name = "text")]
        public String Text { get; set; }

        [DataMember(Name = "finishflag")]
        public String Finishflag { get; set; }

     
    }
}
